package com.server.impl;

import com.dao.orderhanding.OrderhandingMapper;
import com.pojo.Member;
import com.pojo.OrderForm;
import com.server.OrderService;
import com.server.OrderhandingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service
public class OrderhandingServiceImpl implements OrderhandingService {
    @Resource
    OrderhandingMapper orderhandingMapper;

   @Override
   public List<OrderForm> findorderhanding(String orderhandingname){return orderhandingMapper.findorderhanding(orderhandingname);}

    @Override
    public int modifyOrderStatus(int status, String user_message,String order_code) {
        return orderhandingMapper.modifyOrderStatus(status, user_message,order_code);
    }

    @Override
    public int modifyOrderStatus_delivery_date(int status, String user_message, Date delivery_date, String order_code) {
        return orderhandingMapper.modifyOrderStatus_delivery_date(status, user_message, delivery_date, order_code);
    }

    @Override
    public int modifyOrderStatus_confirm_date(int status, Date confirm_date, String order_code) {
        return orderhandingMapper.modifyOrderStatus_confirm_date(status, confirm_date, order_code);
    }

    @Override
    public List<OrderForm> getorderhandingList(){return orderhandingMapper.getorderhandingList();};
}
